import Vue from "vue"
// 注册全局组件
import goBack from "./goBack.vue"
import toSearch from "./toSearch.vue"
import vTitle from "./vTitle.vue"
import vList from "./vList.vue"

let json = {
        goBack,
        toSearch,
        vTitle,
        vList

    }
    // Object.keys(json) //["goBack","toSearch","vTest"]
Object.keys(json).forEach(item => {
    Vue.component(item, json[item])
})

/*
for(let key in json){
    Vue.component(key,json[key])
}*/